.class public Luk/co/deanwild/materialshowcaseview/ViewTarget;
.super Ljava/lang/Object;
.source "ViewTarget.java"

# interfaces
.implements Luk/co/deanwild/materialshowcaseview/Target;


# instance fields
.field private final mView:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .locals 0

    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 17
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    return-void
.end method


# virtual methods
.method public getBounds()Landroid/graphics/Rect;
    .locals 7

    const/4 v0, 0x2

    .line 35
    new-array v0, v0, [I

    .line 36
    iget-object v1, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->getLocationInWindow([I)V

    .line 37
    new-instance v1, Landroid/graphics/Rect;

    const/4 v2, 0x0

    aget v3, v0, v2

    const/4 v4, 0x1

    aget v5, v0, v4

    aget v2, v0, v2

    iget-object v6, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    .line 40
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I

    move-result v6

    add-int/2addr v2, v6

    aget v0, v0, v4

    iget-object v4, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    .line 41
    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v4

    add-int/2addr v0, v4

    invoke-direct {v1, v3, v5, v2, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v1
.end method

.method public getPoint()Landroid/graphics/Point;
    .locals 4

    const/4 v0, 0x2

    .line 26
    new-array v1, v0, [I

    .line 27
    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    invoke-virtual {v2, v1}, Landroid/view/View;->getLocationInWindow([I)V

    const/4 v2, 0x0

    .line 28
    aget v2, v1, v2

    iget-object v3, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getWidth()I

    move-result v3

    div-int/2addr v3, v0

    add-int/2addr v2, v3

    const/4 v3, 0x1

    .line 29
    aget v1, v1, v3

    iget-object v3, p0, Luk/co/deanwild/materialshowcaseview/ViewTarget;->mView:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    div-int/2addr v3, v0

    add-int/2addr v1, v3

    .line 30
    new-instance v0, Landroid/graphics/Point;

    invoke-direct {v0, v2, v1}, Landroid/graphics/Point;-><init>(II)V

    return-object v0
.end method
